<template>
  <!-- 分页组件 -->
  <el-pagination
    class="pagination"
    :current-page="pageable.pageNum"
    :page-sizes="[10, 25, 50, 100]"
    :page-size.sync="pageable.pageSize"
    :total="pageable.total"
    layout="total, sizes, prev, pager, next, jumper"
    :hide-on-single-page="true"
    @size-change="handleSizeChange"
    @current-change="handleCurrentChange"
  />
</template>
<!-- eslint-disable vue/require-default-prop -->
<script>

export default {
  props: {
    pageable: Object,
    handleSizeChange: Function,
    handleCurrentChange: Function
  }
}
</script>
<style lang="scss" scoped>
  .pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
  }
</style>
